<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        #circleProcess {
            position: relative;
            top: 0;
            left: 0;
            width: 200px;
            height: 200px;
            stroke-dasharray: 255%;
            stroke-dashoffset: 255%;
            stroke: #6FEC6F;
            fill: none;
            -webkit-transform: rotate(-90deg);
            -moz-transform: rotate(-90deg);
            -ms-transform: rotate(-90deg);
            -o-transform: rotate(-90deg);
            transform: rotate(-90deg);
        }
    </style>
</head>
<body>
<svg id="circleProcess" xmlns="http://www.w3.org/2000/svg">
    <circle id="circle" cx="50%" cy="50%" r="40%" stroke-width="10%"></circle>
</svg>

<script>
    var circleProcess = document.getElementById("circleProcess");
    var circle = document.getElementById("circle");
    var rangeValue = 0;
    var cc;
    function setCircle() {
        rangeValue = Number(rangeValue);
        circle.setAttribute("stroke-dashoffset", (255 - rangeValue) + "%");

        rangeValue ++;
        if(rangeValue == 255){
            clearInterval(cc);
        }
        console.log(rangeValue);
    }
    cc = setInterval("setCircle()",50);

</script>

</body>
</html>